<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<%
    JSONObject dataJson = new JSONObject();
    dataJson.put("status", false);
    try {
        String dataid = Util.null2String(request.getParameter("dataid"));
        String code = Util.null2String(request.getParameter("code"));
        bb.writeLog(">>>>>dataid=" + dataid+",code="+code);
        boolean status = rs.executeUpdate("update uf_arc_product_tree set custom_code=? where id=?", code, dataid);
        dataJson.put("status", status);
    } catch (Exception e) {
        dataJson.put("status", false);
        bb.writeLog(">>>>>updateArcProductTreeCode_Ajax.jsp异常：" + e.getMessage());
    }
    out.print(dataJson.toJSONString());
%>
